package com.dabay.web.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.dabay.web.dao.DrugDAO;
import com.dabay.web.module.Drugs;
import com.dabay.web.service.Drug_service;


@Service
public class Drug_serviceImpl  implements Drug_service{

	
	@Autowired
	 @Qualifier("drugDAO")
	 private DrugDAO drugDAO;

	public int insertDrugs(Drugs drugs) {
		// TODO Auto-generated method stub
		return drugDAO.insertDrugs(drugs);
	}

	public int selectDrugs(String zwmc) {
		// TODO Auto-generated method stub
		return drugDAO.selectDrugs(zwmc);
	}

	public List<Drugs> selectDrugsList(Map paramMap) {
		// TODO Auto-generated method stub
		return drugDAO.selectDrugsList(paramMap);
	}

	public Drugs selectDrugsById(int id) {
		// TODO Auto-generated method stub
		return drugDAO.selectDrugsById(id);
	}
	 
	 
	
	 
}
